﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using WalkingTec.Mvvm.Core;
using WalkingTec.Mvvm.Core.Extensions;
using ShardingWTM.Models;


namespace ShardingWTM.ProjectManage.ViewModels.ProjectFileVMs
{
    public partial class ProjectFileSearcher : BaseSearcher
    {
        public List<ComboSelectListItem> AllProjects { get; set; }
        public Guid? ProjectId { get; set; }

        protected override void InitVM()
        {
            AllProjects = DC.Set<ProjectInfo>().GetSelectListItems(Wtm, y => y.ProjectName);
        }

    }
}
